package qimao.com.edu.service.impl;

import java.util.List;

import qimao.com.edu.dao.CategoryDao;
import qimao.com.edu.dao.impl.CategoryDaoImpl;
import qimao.com.edu.entity.CategoryMajor;
import qimao.com.edu.entity.CategoryMinor;
import qimao.com.edu.service.CategoryService;

public class CategoryServiceImpl implements CategoryService {

	CategoryDao cd = new CategoryDaoImpl();
	
	@Override
	public CategoryMajor createMajorCategory(CategoryMajor majorCategory) {
		return null;
	}

	@Override
	public List<CategoryMajor> getAllMajorCategories() {
		return cd.selAllMajorCategories();
	}

	@Override
	public List<CategoryMinor> getMinorCategoriesByMajor(Integer majorId) {
		return cd.selMinorCategoriesByParent(majorId);
	}

	@Override
	public List<CategoryMinor> getAllMinorCategories() {
		return cd.selAllMinorCategories();
	}

}
